package com.example.mall.common;

/**
 * @apiNote 常量配置
 */
public class Constants {
    //本地文件上传 -> 如果只是在本地玩玩就用这两个常量
    //public final static String FILE_UPLOAD_DIC = "/opt/youx/upload/";//上传文件的默认url前缀，根据部署设置自行修改
    public final static String FILE_UPLOAD_DIC = "D:\\upload\\";//上传文件的默认url前缀，根据部署设置自行修改

    //远程文件上次 -> OssClient所需的相关配置信息，注意千万不要用 / 开头！
    public final static String ENDPOINT = "oss-cn-beijing.aliyuncs.com";//地域节点
    public final static String ACCESS_KEY_ID = "LTAI5tALCQdAvXgJPynvBUpJ";//id
    public final static String ACCESS_KEY_SECRET = "pOhxGYkzHgNSMtcZpglfaz23Kpg1pR";//秘钥
    public final static String BUCKET_NAME = "bucket-twj";//列表名
    public final static String DIR_PATH = "upload-img/";//目录名，作用是将文件上传到指定的目录下

    public final static int INDEX_CAROUSEL_NUMBER = 5;//首页轮播图数量(可根据自身需求修改)

    public final static int INDEX_CATEGORY_NUMBER = 10;//首页一级分类的最大数量

    public final static int INDEX_GOODS_HOT_NUMBER = 4;//首页热卖商品数量
    public final static int INDEX_GOODS_NEW_NUMBER = 5;//首页新品数量
    public final static int INDEX_GOODS_RECOMMOND_NUMBER = 10;//首页推荐商品数量

    public final static int SHOPPING_CART_ITEM_TOTAL_NUMBER = 20;//购物车中商品的最大数量(可根据自身需求修改)

    public final static int SHOPPING_CART_ITEM_LIMIT_NUMBER = 5;//购物车中单个商品的最大购买数量(可根据自身需求修改)

    public final static int GOODS_SEARCH_PAGE_LIMIT = 10;//搜索分页的默认条数(每页10条)

    public final static int SHOPPING_CART_PAGE_LIMIT = 5;//购物车分页的默认条数(每页5条)

    public final static int ORDER_SEARCH_PAGE_LIMIT = 5;//我的订单列表分页的默认条数(每页5条)

    public final static int SELL_STATUS_UP = 0;//商品上架状态
    public final static int SELL_STATUS_DOWN = 1;//商品下架状态

    public final static int TOKEN_LENGTH = 32;//token字段长度

    public final static String USER_INTRO = "人生如棋，落子无悔！";//默认简介
}
